package com.csweimei.rentmanagementtreasure.tenant.ui.act.mine;

import androidx.appcompat.app.AppCompatActivity;
import androidx.lifecycle.ViewModelProviders;

import android.os.Bundle;

import com.chad.library.BR;
import com.csweimei.rentmanagementtreasure.R;
import com.csweimei.rentmanagementtreasure.base.AppViewModelFactory;
import com.csweimei.rentmanagementtreasure.databinding.ActivityAboutBinding;
import com.csweimei.rentmanagementtreasure.tenant.viewModel.AboutVM;

import me.goldze.mvvmhabit.base.BaseActivity;

public class AboutActivity extends BaseActivity<ActivityAboutBinding, AboutVM> {


    @Override
    public int initContentView(Bundle savedInstanceState) {
        return R.layout.activity_about;
    }

    @Override
    public int initVariableId() {
        return BR.viewModel;
    }

    @Override
    public void initData() {
        super.initData();
        viewModel.setActivity(this);
    }

    @Override
    public AboutVM initViewModel() {
        AppViewModelFactory factory = AppViewModelFactory.getInstance(getApplication());
        return ViewModelProviders.of(this,factory).get(AboutVM.class);
    }
}

